TreeGrid Gantt Chart Tutorial
16. Availability chart
Bar charts defined by a list of date ranges and count
-
The Availability chart is defined by attribute
GanttAvailability
.
The Availability format is: repeater1#date1a~date1b#count1;repeater2#date2a~date2b#count2;.....
The date range is range where the count of resources is available.
If set repeater, it repeats the date range every given time unit, e.g. "w" as week, "d" as day or "10" as 10 units in number chart.
-
There are two possible Availability chart types, work and material. It is set by
GanttAvailabilityType
.
(1) work is not consumed resource. Work resource is available only in defined range.
(2) material, consumed resource. Material resource arrives on defined date and is available forever.
-
One cell can contain more charts defined by more GanttAvailability values, set GanttAvailability attribute to list of cells containing the Availability formats.
-
Every chart can have different color set by
GanttAvailabilityClass
.
It is possible also have different colors for every bar or group of bars in one chart, depending on the bar height, it can be controlled dynamically in
OnGetAvailabilityClass API event.
-
By default the upper and lower bound is the highest and smallest value in the one chart.
It is possible to preset the bounds by
GanttAvailabilityMax
and GanttAvailabilityMin
.
-
The Availability chart sources can be simply summed up by formula function sumrange. Or by simple add formula plus semicolon like: "A+';'+B+";'+C".
The chart sources can be also subtracted by summing them with negate sign add by negav Formula function.
-
The Availability chart source can be created also as resource usage (of GanttResource value) by method GetResourceUsage.
-
The GanttAvailability attribute can have also special format to show various resource usage charts. See previous tutorial Resources.
-
The Availability bars can be rounded or split to GanttExclude parts, set the option by GanttAvailabilityExclude. It can be done only for Work resources.